package model;


//a palyan talalhato statikus elemek absztrakt ososztalya
public abstract class MapElement {
	
//adott elem koordinatai
	protected int loc_x;
	protected int loc_y;
//adott elem tipusa
	protected String type;
//adott elem "hatokore"
	protected float range;
	protected int id;	
	
	//adott tipusu, meretu elemet hoz letre az (x;y) pontban
	public MapElement(int x, int y, String typ, float rng){
		loc_x = x;
		loc_y = y;
		type = typ;
		range = rng;
	}
	
	public MapElement(String typ,int pid,int x, int y){
		id=pid;
		loc_x = x;
		loc_y = y;
		type = typ;
		range = 15;
	}
	
	public MapElement(){
		
	}

	//visszaadja a sajat tipusat
	public String getType(){
		return type;
	}
	
	//koordinatak lekerdezese
	public int get_x(){
		return loc_x;
	}
	
	public int get_y(){
		return loc_y;
	}
	//meret lekerdezese
	public float getRange(){
		return range;
	}
	//utkozes
	public abstract boolean collision(Ant a);
	
	
	//kirajzolas
	public void draw(){}
}

